/******************************************************************************
 * Product: Adempiere ERP & CRM Smart Business Solution                       *
 * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved.                *
 * This program is free software, you can redistribute it and/or modify it    *
 * under the terms version 2 of the GNU General Public License as published   *
 * by the Free Software Foundation. This program is distributed in the hope   *
 * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.           *
 * See the GNU General Public License for more details.                       *
 * You should have received a copy of the GNU General Public License along    *
 * with this program, if not, write to the Free Software Foundation, Inc.,    *
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.                     *
 * For the text or an alternative of this public license, you may reach us    *
 * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA        *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;

import java.sql.ResultSet;
import java.util.Properties;
import org.compiere.util.KeyNamePair;

/** Generated Model for hrm_samplesheduleline
 *  @author Adempiere (generated) 
 *  @version Release 3.7.0LTS - $Id$ */
public class X_hrm_samplesheduleline extends PO implements I_hrm_samplesheduleline, I_Persistent 
{

	/**
	 *
	 */
	private static final long serialVersionUID = 20120911L;

    /** the default Constructor */
    public X_hrm_samplesheduleline(Properties ctx)
    { 
      super (ctx, null, null);
    } 

    /** Standard Constructor */
    public X_hrm_samplesheduleline (Properties ctx, int hrm_samplesheduleline_ID, String trxName)
    {
      super (ctx, hrm_samplesheduleline_ID, trxName);
      /** if (hrm_samplesheduleline_ID == 0)
        {
			sethrm_dayschedule_ID (0);
			sethrm_sampleshedule_ID (0);
			sethrm_samplesheduleline_ID (0);
			sethrm_workdays (null);
        } */
    }

    /** Load Constructor */
    public X_hrm_samplesheduleline (Properties ctx, ResultSet rs, String trxName)
    {
      super (ctx, rs, trxName);
    }

    /** AccessLevel
      * @return 3 - Client - Org 
      */
    protected int get_AccessLevel()
    {
      return accessLevel.intValue();
    }

    /** Load Meta Data */
    protected POInfo initPO (Properties ctx)
    {
      POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
      return poi;
    }

    public String toString()
    {
      StringBuffer sb = new StringBuffer ("X_hrm_samplesheduleline[")
        .append(get_ID()).append("]");
      return sb.toString();
    }

	public I_hrm_dayschedule gethrm_dayschedule() throws RuntimeException
    {
		return (I_hrm_dayschedule)MTable.get(getCtx(), I_hrm_dayschedule.Table_Name)
			.getPO(gethrm_dayschedule_ID(), get_TrxName());	}

	/** Set hrm_dayschedule_ID.
		@param hrm_dayschedule_ID hrm_dayschedule_ID	  */
	public void sethrm_dayschedule_ID (int hrm_dayschedule_ID)
	{
		if (hrm_dayschedule_ID < 1) 
			set_Value (COLUMNNAME_hrm_dayschedule_ID, null);
		else 
			set_Value (COLUMNNAME_hrm_dayschedule_ID, Integer.valueOf(hrm_dayschedule_ID));
	}

	/** Get hrm_dayschedule_ID.
		@return hrm_dayschedule_ID	  */
	public int gethrm_dayschedule_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_dayschedule_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_hrm_sampleshedule gethrm_sampleshedule() throws RuntimeException
    {
		return (I_hrm_sampleshedule)MTable.get(getCtx(), I_hrm_sampleshedule.Table_Name)
			.getPO(gethrm_sampleshedule_ID(), get_TrxName());	}

	/** Set hrm_sampleshedule.
		@param hrm_sampleshedule_ID hrm_sampleshedule	  */
	public void sethrm_sampleshedule_ID (int hrm_sampleshedule_ID)
	{
		if (hrm_sampleshedule_ID < 1) 
			set_ValueNoCheck (COLUMNNAME_hrm_sampleshedule_ID, null);
		else 
			set_ValueNoCheck (COLUMNNAME_hrm_sampleshedule_ID, Integer.valueOf(hrm_sampleshedule_ID));
	}

	/** Get hrm_sampleshedule.
		@return hrm_sampleshedule	  */
	public int gethrm_sampleshedule_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_sampleshedule_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set hrm_samplesheduleline.
		@param hrm_samplesheduleline_ID hrm_samplesheduleline	  */
	public void sethrm_samplesheduleline_ID (int hrm_samplesheduleline_ID)
	{
		if (hrm_samplesheduleline_ID < 1) 
			set_ValueNoCheck (COLUMNNAME_hrm_samplesheduleline_ID, null);
		else 
			set_ValueNoCheck (COLUMNNAME_hrm_samplesheduleline_ID, Integer.valueOf(hrm_samplesheduleline_ID));
	}

	/** Get hrm_samplesheduleline.
		@return hrm_samplesheduleline	  */
	public int gethrm_samplesheduleline_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_samplesheduleline_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** hrm_workdays AD_Reference_ID=1000028 */
	public static final int HRM_WORKDAYS_AD_Reference_ID=1000028;
	/** First = first */
	public static final String HRM_WORKDAYS_First = "first";
	/** Second = second */
	public static final String HRM_WORKDAYS_Second = "second";
	/** Third = third */
	public static final String HRM_WORKDAYS_Third = "third";
	/** Fourth = fourth */
	public static final String HRM_WORKDAYS_Fourth = "fourth";
	/** Fifth = fifth */
	public static final String HRM_WORKDAYS_Fifth = "fifth";
	/** Sixth = sixth */
	public static final String HRM_WORKDAYS_Sixth = "sixth";
	/** Seventh = seventh */
	public static final String HRM_WORKDAYS_Seventh = "seventh";
	/** Set hrm_workdays.
		@param hrm_workdays hrm_workdays	  */
	public void sethrm_workdays (String hrm_workdays)
	{

		set_Value (COLUMNNAME_hrm_workdays, hrm_workdays);
	}

	/** Get hrm_workdays.
		@return hrm_workdays	  */
	public String gethrm_workdays () 
	{
		return (String)get_Value(COLUMNNAME_hrm_workdays);
	}

    /** Get Record ID/ColumnName
        @return ID/ColumnName pair
      */
    public KeyNamePair getKeyNamePair() 
    {
        return new KeyNamePair(get_ID(), String.valueOf(gethrm_workdays()));
    }
}